#include "UILabel.h"

namespace Lame3d
{
	UILabel::UILabel(const std::string &name, const Point2d &loc, const Point2d &siz, const std::string &txt, bool w)
			: UIElement(name, loc, siz), text(txt), wrap(w)
	{
	}
	
	UILabel::~UILabel()
	{
	}
	
	const std::string& UILabel::Text() const
	{
		return text;
	}
	
	void UILabel::Text(const std::string& t)
	{
		text = t;
	} 
	
	bool UILabel::Wrap() const
	{
		return wrap;
	}
	
	void UILabel::Wrap(bool b)
	{
		wrap = b;
	}
	
	UILabel::TextStyle UILabel::Style() const
	{
		return style;
	}
	
	void UILabel::Style(TextStyle t)
	{
		style = t;
	} 
}

// eof //
